package com.linjj.seckill.exception;

import com.linjj.seckill.vo.CodeMsg;
/**
 *全局异常，通过CodeMsg区别不同类型的异常
 * */
public class GlobalException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	
	private CodeMsg cm;
	
	public GlobalException(CodeMsg cm) {
		super(cm.toString());
		this.cm = cm;
	}

	public CodeMsg getCm() {
		return cm;
	}

}
